//
//@File    :	11.4_mytime1.h
//@Time    :	2021/08/29 09:07:30
//@Auther  :	Sun Sheng
//@Contact :	970340843@qq.com
//@Desc    :	Time class before operator overloading
//

#ifndef MYTIME1_H_
#define MYTIME1_H_

class Time
{
private:
    int hours;
    int minutes;
public:
    Time();
    Time(int h,int m=0);
    void AddMin(int m);
    void AddHr(int h);
    void Reset(int h=0,int m=0);
    Time operator+(const Time & t) const;
    //加号的时间类运算符重载
    void Show() const;
};
#endif	// MYTIME1_H_